package com.newsnetwork.eureka;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.amqp.RabbitAutoConfiguration;
import org.springframework.boot.autoconfigure.data.redis.RedisAutoConfiguration;
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
import org.springframework.boot.autoconfigure.mongo.MongoAutoConfiguration;
import org.springframework.cloud.netflix.eureka.server.EnableEurekaServer;

/**
 * @author: HuangDekai
 * @date: 2022/11/21 15:40
 * @version: 1.0
 * @since: jdk8
 */

@SpringBootApplication(exclude = {DataSourceAutoConfiguration.class,
                                  MongoAutoConfiguration.class,
                                  RabbitAutoConfiguration.class,
                                  RedisAutoConfiguration.class
                       })
@EnableEurekaServer //开启注册中心
public class Application {
    public static void main(String[] args) {
        SpringApplication.run(Application.class, args);
    }
}
